<template lang="">
  <div class="study-center-box">
    <div class="study-navbar">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane name="courseCompleteAudit">
          <span slot="label" class="tabPaneStyle"><i style="font-size:19px;" class="iconfont iconweibiaoti--"></i> 成长档案管理</span>
          <div v-if="activeName == 'courseCompleteAudit'">
            <course-completeAudit :activeName="activeName"></course-completeAudit>
          </div>
        </el-tab-pane>
      </el-tabs>
      <div class="login-info-box flex-row">
          <div class="picture">
            <img src="@/assets/homePicture/userpicture.png">
          </div>
          <div class="login-info">
              <p>欢迎您，{{username}}</p>
          </div>
      </div>
    </div>
  </div>
</template>
<script>
import courseCompleteAudit from "@/pages/growthArchives/studyModal/classFinish";
export default {
  components: {
    courseCompleteAudit
  },
  data() {
    return {
      username: "",
      activeName: "courseCompleteAudit"
    };
  },
  mounted() {
    let menuList = localStorage.getItem("menuList");
    let initMenuList = JSON.parse(menuList);
    this.username = initMenuList.username;
  },
  watch: {
    activeName(oldVal, newVal) {}
  },
  methods: {
    handleClick() {}
  }
};
</script>
<style lang="less" scoped>
// @import url("~@/pagecss/studyCenter");
.is-active,
.study-center-box {
  background-color: #fff !important;
}
.study-center-box {
  padding: 0 15px;
}
.picture {
  width: 25px;
  height: 25px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: antiquewhite;
}
.login-info {
  p {
    line-height: 15px;
    font-size: 13px;
    font-weight: 300;
    color: rgba(102, 102, 102, 1);
  }
}
.login-info-box {
  position: absolute;
  top: 3px;
  right: 15px;
}
</style>
